/**
 * 
 */
package cs3201.westga.edu.project_2;

import org.junit.Test;

import junit.framework.TestCase;


/**
 * @author cstamps2
 *
 */
public class TestTriangle extends TestCase{
	
	@Test
	public void testGetArea(){
		Triangle t = new Triangle(2 ,4);
		assertEquals(4.0, t.getArea() );
	}
	
	@Test
	public void testResize(){
		Triangle t = new Triangle(2,4);
		t.resize(.5);
		assertEquals(1.0, t.getBase());
		assertEquals(2.0, t.getHeight());
	}
	
	
	

}
